<%@ include file="include/header.jsp"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div id="veilinginfo">
	<h1 style="color: white">Veiling aan het laden...</h1>
	</br> </br>
</div>

<script type="text/javascript">
	var interval = setInterval(function() {
		$('#veilinginfo').load(
				"index.html?action=veilinginfo&veiling=${item.id} #item");
	}, 1000);
</script>

<c:if test="${ingelogd && item.eindtijdstring != 'GESLOTEN'}">
			<div class="item">
				<h1>Bied zelf ook!</h1>
				<label> Minimumbedrag: ${item.minimumBod}</label>
				<form action="BiedingServlet" method="post" accept-charset="utf-8">
					<label for="amount">Bedrag:</label> <input type="text"
						name="amount" value="" />

					<div class="clear"></div>
					<input type="hidden" name="id" value="${item.id}" /> <input
						type="submit" name="submit" value="Bieden" /><input type="reset"
						name="reset" value="Formulier leegmaken" />
				</form>
			</div>
		</c:if>


<div id="biedinglist">
	<h1 style="color: white">Biedingen aan het laden...</h1>
	</br> </br>
</div>

<script type="text/javascript">
	var interval = setInterval(function() {
		$('#biedinglist').load(
				"index.html?action=getbiedingen&veiling=${item.id} #items");
	}, 1000);
</script>

<div class="item">
	<img src="images/veiling/${item.id}.png" alt="examp_picture class=" auction_view" />
</div>
<%@ include file="include/footer.jsp"%>